package com.kimstore.dao;

import java.util.List;

import com.kimstore.bean.Product;
import java.util.Date;

public interface ProductDao extends GenericJpaDao<Product, Integer> {

    public List<Product> getStocks();

    public Product findByName(String name);

    public List<Product> getBestSellingProducts();

    public List<Product> getBestSellingProducts(Date startDate, Date endDate);

    public List<Product> getUnderperformingProducts();

    public List<Product> getGrossSales(Date startDate, Date endDate);

    public List<Product> getNetIncome(Date startDate, Date endDate);

    boolean existsName(String name);

    List<Product> findAllActive();

    List<Product> findAll(int startIndex, int maxNumber);

    long count();
}
